package o.gwtp.editor.client.editor;

import o.gwtp.editor.client.editor.EditorPresenter.EditorView;

import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;

/**
 * @author Olivier Monaco
 */
public class EditorViewImpl extends ViewImpl implements EditorView {
  private SimplePanel panel;

  @Inject
  public EditorViewImpl() {
    panel = new SimplePanel();
    TextArea textArea = new TextArea();
    textArea.setSize("100%", "100%");
    panel.setWidget(textArea);
  }

  @Override
  public Widget asWidget() {
    return panel;
  }
}
